<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        body{height: 650px}
        .nav{
            height: 50px;
            border-bottom: 4px solid lightseagreen;
            line-height: 50px;


        }
        .nav a{
            text-decoration: none;
            color: cornflowerblue;
        }
        .left{
            height: 600px;
            float: left;
            width: 20%;
            border-right:2px solid gainsboro;

        }
        .right{
            height: 600px;
            float: left;
            width: 79%;

        }
        .left div{
            height: 30px;
            background: white;
            margin-top: 10px;
            line-height: 30px;
            text-align: center;
            font-size: 20px;
        }
        .left div:hover{
            background: deepskyblue;
        }
    </style>
    <script src="http://code.jquery.com/jquery-2.1.4.min.js"></script>
     <script type="text/javascript" src="https://assets.pyecharts.org/assets/echarts.min.js"></script>
     <script type="text/javascript" src="https://assets.pyecharts.org/assets/maps/china.js"></script>
</head>
<body>
<div class="nav"><a href="{{ url_for('home') }}">返回主页</a></div>
<div class="left">
    <div>全国岗位需求量分布</div>
    <div>全国岗位需求量</div>
    <div>岗位要求与标签</div>
    <div>薪资</div>
    <div>公司类型与规模</div>
    <div>公司薪资待遇综合排名top50</div>
</div>
<div class="right"></div>
</body>
</html>
<script>
    $(function () {
        $('.left div').click(function () {
            if($(this).text()=='全国岗位需求量分布'){
                $.ajax({
                    url:"{{ url_for('view1') }}",
                    success:function (res) {
                        $('.right').html(res)
                    }
                })
            }

            else if($(this).text()=='全国岗位需求量'){
                $.ajax({
                    url:"{{ url_for('view2') }}",
                    success:function (res) {
                        $('.right').html(res)
                    }
                })
            }


            else if($(this).text()=='岗位要求与标签'){
                $.ajax({
                    url:"{{ url_for('view3') }}",
                    success:function (res) {
                        $('.right').html(res)
                    }
                })
            }

            else if($(this).text()=='薪资'){
                $.ajax({
                    url:"{{ url_for('view4') }}",
                    success:function (res) {
                        $('.right').html(res)
                    }
                })
            }

            else if($(this).text()=='公司类型与规模'){
                $.ajax({
                    url:"{{ url_for('view5') }}",
                    success:function (res) {
                        $('.right').html(res)
                    }
                })
            }

            else if($(this).text()=='公司薪资待遇综合排名top50'){
                $.ajax({
                    url:"{{ url_for('view6') }}",
                    success:function (res) {
                        $('.right').html(res)
                    }
                })
            }
        })
    })
</script>